package com.cn.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
@SpringBootApplication(scanBasePackages = "com.cn")
@MapperScan({"com.cn.por.biz.**.dao","com.cn.por.auto.**.dao"})
@Import({com.cn.por.config.security.SecurityConfig.class})
@ImportResource("classpath:config/spring.xml")
public class AdminApplication {

	public static void main(String[] args) {
		//UsernamePasswordAuthenticationFilter
		SpringApplication.run(AdminApplication.class, args);
	}

}